require "migration_helpers"
class CreateIdentifiers < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :identifiers do |t|
      t.column :identifier_type_id, :integer
      t.column :value, :string
      t.column :meta_id, :integer
    end
    foreign_key(:identifiers, :identifier_type_id, :identifier_types)
    foreign_key(:identifiers, :meta_id, :metas)
  end

  def self.down
    drop_table :identifiers
  end
end
